\<%@ page pageEncoding="UTF-8"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
\<%@ taglib uri="http://www.kevin.com/util" prefix="util"%>
\<%@ page trimDirectiveWhitespaces="true" %>

<table class="list">
    <tr>
        <th class="w50 taCenter">序号</th>
    <% var count = 0; %>
	<% for ( fieldModel in fieldList ) { %>
		<% if ( fieldModel.isShowInList ) { %>
			<% count++; %>
	    <th>${fieldModel.comments}</th>
	   	<% } %>
	<% } %>
        <th class="archives_operate">操作</th>
    </tr>
<c:if test="\${not empty pageBean.resultList }">
<c:forEach var="model" items="\${pageBean.resultList }" varStatus="var">
    <tr>
        <td style="text-align: center;">\${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
        
	<% for ( fieldModel in fieldList ) { %>
		<% if ( fieldModel.isShowInList ) { %>
	   	<td title="\${model.${fieldModel.fieldName} }">\${model.${fieldModel.fieldName} }</td>
		<% } %>
	<% } %>
        <td>
            <a href="/${baseURL!}/show?id=\${model.id}" class="shieldDialog" viewTitle="查看" viewWidth="500">
                <img src="\${ctxPath }/images/archive_view.png"  class="detail c_p inited" title="查看">
            </a>
            <a href="/${baseURL!}/toAddOrUpdate?id=\${model.id}" class="shieldDialog" viewTitle="修改" viewWidth="800">
                <img src="\${ctxPath }/images/archive_modify.png" v="512" class="modify c_p inited" title="修改">
            </a>
            <a href="/${baseURL!}/del?id=\${model.id}" class="shieldAjax" viewtitle="确定要删除该条信息吗？">
                <img src="\${ctxPath }/images/archiveitem_delete.png" class="del c_p inited" title="删除">
            </a>
        </td>
    </tr>
</c:forEach>
</c:if>
    <c:if test="\${empty pageBean.resultList }">
    <!-- 无数据时展示，有数据时展示上面的列表, nodatatr_plugin自动处理列合并数-->
    <c:if test="\${empty pageBean.resultList }">
        <tr><td colspan="${count!0+2}" class="taCenter">暂无信息</td></tr>
    </c:if>
</c:if>
</table>
\<%@include file="/WEB-INF/view/include/pagination.jsp"%>